package com.hm.day1211;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class XiaoMing {
	
	private String name;

	@Autowired
	private Girlfriend girlfriend;
	
	public XiaoMing() {
	}
	
	

	@Override
	public String toString() {
		return "XiaoMing [name=" + name + ", girlfriend=" + girlfriend + "]";
	}



	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	

	public Girlfriend getGirlfriend() {
		return girlfriend;
	}

	public void setGirlfriend(Girlfriend girlfriend) {
		this.girlfriend = girlfriend;
	}
	
	
}
